forum

Home / DeveloperSection / Forums / MemoryStream in Using Statement - Do I need to call close()

MemoryStream in Using Statement - Do I need to call close()

Jayden Bell 2154 03-Feb-2014

When using a memory stream in a using statement do I need to call close? For instance is ms.Close() needed here?

  using (MemoryStream ms = new MemoryStream(byteArray)) 
    { 
      // stuff
      ms.Close();
    }

c# c# 
Updated on 03-Feb-2014

Can you answer this question?


Answer

1 Answers

Liked By